package com.mate.cloud.config;

import com.alibaba.csp.sentinel.annotation.aspectj.SentinelResourceAspect;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 定义配置类，实例化SentinelResourceAspect对象
 * @author cong zhi
 * @email  448341911@qq.com
 * @createDate   2023/3/20 10:35
 * @version: v1.0
 */
@Configuration
public class SentinelConfiguration {

    @Bean
    public SentinelResourceAspect sentinelResourceAspect() {
        return new SentinelResourceAspect();
    }
}
